<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.org/ui" xmlns:a4j="http://richfaces.org/a4j"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
				
				<h:panelGrid id="display" columns="2" cellpadding="4"
					style="width:400px;" styleClass="ui-widget-content"
					columnClasses="label, value">

					<f:facet name="header">
						<center>
							<h:outputText value="Özellikler" />
						</center>
						<br></br>
					</f:facet>

					<h:outputText value="Firma:" />
					<h:outputText  id="urunFirmaIsim"
						value="#{BelleklerBean.selectedBellek.sirketprofil.firmaAd}" />

					<h:outputText value="Marka:" />
					<p:inputText  id="urunMarka"
						value="#{BelleklerBean.selectedBellek.aygit.marka}" />

					<h:outputText value="Model:" />
					<p:inputText  id="firmaModel"
						value="#{BelleklerBean.selectedBellek.aygit.model}" />

					<h:outputText value="USB Versiyon:" />
					<p:inputText  id="urunUsbVersiyon"
						value="#{BelleklerBean.selectedBellek.usbVersiyon}" />

					<h:outputText value="Tipi:" />
					<p:inputText  id="urunTipi"
						value="#{BelleklerBean.selectedBellek.tipi}" />

					<h:outputText value="Kapasite:" />
					<p:inputText  id="urunKapasite"
						value="#{BelleklerBean.selectedBellek.kapasite}" />

					<h:outputText value="Okuma Hızı:" />
					<p:inputText  id="urunOkumaHizi"
						value="#{BelleklerBean.selectedBellek.okumaHizi}" />

					<h:outputText value="Yazma Hızı:" />
					<p:inputText  id="urunYazmaHizi"
						value="#{BelleklerBean.selectedBellek.yazmaHizi}" />

					<h:outputText value="Boyutları:" />
					<p:inputText  id="urunboyutlari"
						value="#{BelleklerBean.selectedBellek.boyutlari}" />

					<h:outputText value="Ağırlık:" />
					<p:inputText  id="urunAgirlik"
						value="#{BelleklerBean.selectedBellek.agirlik}" />

					<h:outputText value="Platform:" />
					<p:inputText  id="urunPlatform"
						value="#{BelleklerBean.selectedBellek.platform}" />

					<h:outputText value="Renk:" />
					<p:inputText  id="urunRenk"
						value="#{BelleklerBean.selectedBellek.renk}" />

					<h:outputText value="Çaliş Çıkarma:" />
					<p:inputText  id="uruncalisCikarma"
						value="#{BelleklerBean.selectedBellek.calisCikarma}" />

					<h:outputText value="Led ışığı:" />
					<p:inputText  id="urunLedisigi"
						value="#{BelleklerBean.selectedBellek.ledisigi}" />

					<h:outputText value="Readyboast:" />
					<p:inputText  id="urunReadyboast"
						value="#{BelleklerBean.selectedBellek.readyboast}" />

					<h:outputText value="Garanti Suresi:" />
					<p:inputText  id="urunGarantiSuresi"
						value="#{BelleklerBean.selectedBellek.garantiSuresi}" />
					<h:outputText />
					<h:outputText />
					
					<h:outputText />
					<p:commandButton value="Save" update=":urunislemForm" id="ajax" 
						action="#{BelleklerBean.SaveOrUpdate}" />
					
				</h:panelGrid>
				<c:if test="#{AygitBean.yeniUrun==false}">
				
				<p:dataGrid var="resim" value="#{ResimlerBean.selectedAygitResimList}" columns="3"
					rows="6" paginator="true" id="resimListesi"
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} 
					{PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="3,6,9">

					<p:column>
						<p:panel>
							<h:panelGrid columns="1" style="width:100%">
								 <p:graphicImage value="#{resim.resimKonum}" 
        						style="height:100px; width:90px;"/> 
								
								<p:commandButton value="Delete" update=":urunislemForm" 
    							id="DeletePictures" 
            			 		action="#{ResimlerBean.deleteAygitFile(resim)}"/>
            			 		
							</h:panelGrid>
						</p:panel>
					</p:column>

				</p:dataGrid>
					
				</c:if>
				<ui:include src="uploadPictures.xhtml" />
</ui:composition>